/* 基础样式 */
:root {
    --primary-color: #6d94f7;
    --secondary-color: #8a6df7;
    --accent-color: #f76d8e;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #6c757d;
}
/*填满页面*/
.elite-league,
.hero-section,
.stats-section,
.universities-section,
.join-section {
    padding: 0 0;
    margin: 0 0;
    width: 100%;
    max-width: 100%;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f5f7fa;
    overflow-x: hidden;
}

/* 空页眉页脚 */
.empty-header, .empty-footer {
    height: 20px;
    background-color: transparent;
}

/* 粒子背景 */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

/* 英雄区域 */
.scrolling-ribbon {
    position: absolute;
    bottom: 50px; /* 从原来的bottom:0改为50px，留出空间 */
    left: 0;
    width: 100%;
    height: 60px;

    overflow: hidden;
    display: flex;
    align-items: center;
    z-index: 10; /* 确保在最上层 */
}

/* 调整英雄区域的高度，为滚动条留出空间 */
.hero-section {
    
    position: relative;
    height: calc(70vh - 60px); /* 减去滚动条高度 */
    min-height: 540px; /* 原600px减去60px */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
    background: url('images/flower.jpg') center/cover no-repeat;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 黑色半透明遮罩 */
    z-index: 1;
}
/* 调整内容位置 */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 60px; /* 为滚动条留出空间 */
    color: white;
}

.glowing-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(109, 148, 247, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(109, 148, 247, 0.3);
    }
    to {
        text-shadow: 0 0 20px rgba(109, 148, 247, 0.6), 
                    0 0 30px rgba(109, 148, 247, 0.4);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}



.ribbon-content {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.ribbon-content span {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0 40px;
    position: relative;
}

.ribbon-content span::after {
    content: '•';
    position: absolute;
    right: -30px;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 数据统计区 */
.stats-section {
    padding: 80px 0;
    background: white;
    position: relative;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background:  #6d94f7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 1.8rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* 联盟院校区域背景修改 */
.universities-section {
    position: relative;
    padding: 100px 0;
    background: url('images/ace.jpg') center/cover no-repeat;
    background-position: center 30%; /* 图片下移 */
    overflow: hidden;
}

/* 添加半透明遮罩 */
.universities-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.50); /* 白色半透明遮罩 */
    z-index: 1;
}

/* 确保内容在遮罩上方 */
.section-header {
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}
.university-grid {
    position: relative;
    z-index: 2;
}

/* 调整卡片透明度 */
.university-card {
    background: rgba(255, 255, 255, 0.95); /* 更透明的白色 */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* 调整标题颜色 */
.section-title {
    color: #495057;
}

.section-title span {
    color: #6D94F7;
}

/* 修改联盟院校部分的副标题样式 */
.section-subtitle {
    color:#495057;
    text-align: center; /* 确保文本居中 */
    max-width: 100%; /* 允许文本占据最大宽度 */
    margin: 0 auto; /* 水平居中 */
    padding: 0 20px; /* 添加内边距防止边缘溢出 */
    font-size: 1.2rem;
    line-height: 1.6;
    margin-top: 15px; /* 与主标题的间距 */
    position: relative;
    display: block;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .universities-section {
        background-position: center 20%; /* 移动端图片位置微调 */
    }
}

.university-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.university-card {
    background: white;
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.university-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.university-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--accent-color), #f76d8e);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.university-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    position: relative;
}

.university-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.logo-halo {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(109, 148, 247, 0.2) 0%, rgba(109, 148, 247, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.university-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 10px;
}

.university-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.university-rank, .university-type {
    font-size: 0.9rem;
    color: var(--text-light);
    background: rgba(0, 0, 0, 0.05);
    padding: 5px 10px;
    border-radius: 15px;
}

.university-desc {
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.6;
}

.university-courses {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.course-tag {
    background: rgba(109, 148, 247, 0.1);
    color: #6D94F7;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.course-tag:hover {
    background: rgba(109, 148, 247, 0.2);
    transform: translateY(-2px);
}

.university-cta {
    text-align: center;
}

.btn-view {
    background:  #6D94F7;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(109, 148, 247, 0.3);
}

.btn-view:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(109, 148, 247, 0.4);
}

/* 加入联盟区 */
.join-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #6D94F7, #8a6df7);
    color: white;
    position: relative;
    overflow: hidden;
}

.join-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.join-content {
    flex: 1;
    max-width: 600px;
}

.join-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.join-desc {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}

.join-buttons {
    display: flex;
    gap: 20px;
}

.btn-join {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-join:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-contact {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.join-graphic {
    width: 400px;
    height: 400px;
    position: relative;
}

.graphic-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    animation: rotate 30s linear infinite;
}

.graphic-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.graphic-icons i {
    position: absolute;
    font-size: 2.5rem;
    color: white;
    animation: float 6s ease-in-out infinite;
}

.graphic-icons i:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.graphic-icons i:nth-child(2) {
    top: 60%;
    left: 30%;
    animation-delay: 2s;
}

.graphic-icons i:nth-child(3) {
    top: 40%;
    left: 70%;
    animation-delay: 4s;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .glowing-title {
        font-size: 3.5rem;
    }
    
    .join-container {
        flex-direction: column;
        text-align: center;
    }
    
    .join-content {
        margin-bottom: 50px;
    }
    
    .join-graphic {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .glowing-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .university-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .join-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-join, .btn-contact {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .glowing-title {
        font-size: 2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}